package IO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class IODemo4 {
    public static void main(String[] args)throws FileNotFoundException {
        try (OutputStream outputStream = new FileOutputStream("./test.txt")) {
            byte[] buffer = new byte[] {97, 98, 99, 100, 101, 102};
            outputStream.write(buffer);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
